-
-
Notifications
You must be signed in to change notification settings - Fork 833
New composer: support forcing auto complete on name by hitting tab #3349
Conversation
that's not what the slate impl does and it's not an improvement
so one can await if needed
and also for multiple transformations at once. This removes the need to call the update callback from `replaceRange()` as well
by replacing word before caret with pill-candidate and forcing auto complete
not ideal, but for now this prevents a crash at startup when a user-pill is persisted in local storage
before the insertPartsAt method would call the update callback on its own, but now we have the concept of a transformation session, so lets bring the API in line
as this is now called from the `transform` method, unused in this test
808da9a
to
994bcb5
Compare
also add try/catch in _tabCompleteName so errors don't get swallowed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise lgtm!
@@ -27,6 +27,15 @@ limitations under the License. | |||
white-space: nowrap; | |||
} | |||
|
|||
@keyframes visualbell { | |||
from { background-color: #faa; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be defined in the theme?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&.mx_BasicMessageComposer_input_error { | ||
animation: 0.2s visualbell; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also may want Nad to weigh in on the visual flash as it currently highlight the bit where the text box actually is which is normally not visible so looks a bit odd. Not sure what the best way would be to make it look better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// if (this.state.query === query) { | ||
// return Promise.resolve(); | ||
// } else { | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unintentionally left in?
the visualbell css animation is duplicated, which will be cleaned up when the slate editor is removed. |
Implements element-hq/element-web#10627